home *** CD-ROM | disk | FTP | other *** search
- ; VB 5.0 Control Creation Setup
-
- [Version]
- AdvancedInf=2.5, "You need a newer version of AdvPack.Dll to run Setup"
- Signature="$CHICAGO$"
-
- [DefaultInstall]
- CopyFiles=AppFiles,AppHelpFiles,OfficeFiles,InfDirFiles,SysDirFiles,FontDirFiles,WinDirFiles,TemplateProjects,TemplateCtlGroup,Wizards,Samples,SampleAXButton,SampleAXLstPik,SampleAXMarquis,SetupkitSetup1,SetupkitKitfil32,SetupkitKitfil32Sys32
- CustomDestination = InstallCustomDestination
- AddReg = AddRegSection, RegLicenseKeys
- RegisterOCXs = SelfRegisterSection
- UpdateInis = InstallProgramGroup
-
- [Uninstall]
- ;Don't remove font, only remove some files from the sys directory
- DelFiles=AppFiles,InfDirFiles,DelSysDirFiles,WinDirFiles,TemplateProjects,TemplateCtlGroup,Wizards,Samples,SampleAXButton,SampleAXLstPik,SampleAXMarquis,SetupkitSetup1,SetupkitKitfil32,SetupkitKitfil32Sys32
- CustomDestination = UninstallDestination
- DelReg = DelRegSection
- UpdateInis = UninstallProgramGroup
- UnRegisterOCXs = SelfUnregisterSection
- BeginPrompt = BeginPromptSection
- EndPrompt = EndPromptSection
-
- [BeginPromptSection]
- Prompt="%BeginPrompt%"
- ButtonType=YESNO
- Title=%AppName%
-
- [EndPromptSection]
- Prompt="%EndPrompt%"
-
- [DestinationDirs]
- ; Here we always use the LDID OEM SFN for custom LDID's so we work on Win95
- AppFiles=49000 ; Custom directory chosen by user
- AppHelpFiles=49000
- OfficeFiles=49300 ; progra~1\common~1\microsof~1\vba
- InfDirFiles=17 ; 17 - \Windows\INF directory
- SysDirFiles=11 ; 11 - Copies to the system directory
- DelSysDirFiles=11
- FontDirFiles=20 ; 20 - Copies to \Windows\Fonts directory
- WinDirFiles=25 ; 25 - Copies to \Windows directory
- TemplateProjects=49000,Template\Projects
- TemplateCtlGroup=49000,Template\CtlGroup
- Wizards=49000,Wizards
- Samples=49000,Samples
- SampleAXButton=49000,Samples\AXButton
- SampleAXLstPik=49000,Samples\AxLstPik
- SampleAXMarquis=49000,Samples\AXMrquee
- SetupkitSetup1=49000,SetupKit\Setup1
- SetupkitKitfil32=49000,SetupKit\KitFil32
- SetupkitKitfil32Sys32=49000,SetupKit\KitFil32\Sys32
-
- [InfDirFiles]
- vb5cce.inf
-
- [SysDirFiles] ;Copy the following files to the system directory.
- regsvr32.exe,,,32 ;General files
- riched20.dll,,,32 ;Office files
- asycfilt.dll,,,32 ;OLE files
- comcat.dll,,,32
- oleaut32.dll,,,32
- stdole2.tlb,,,32
- msvcrt40.dll,,,32
- msvbvm50.dll,,,32 ;VB Runtime
- comdlg32.ocx,,,32 ;For Wizards
- comctl32.ocx,,,32 ;For Wizards
- msstkprp.dll,,,32 ;For Controls
- ComDlg32.DEP,,,16 ;For Setup Wizard
- ComCtl32.DEP,,,16 ;For Setup Wizard
- commtb32.dll,,,32 ;Office file
-
- ;For Uninstall we only remove these files from the system directory
- [DelSysDirFiles]
- ComDlg32.DEP,,,16 ;For Setup Wizard
- ComCtl32.DEP,,,16 ;For Setup Wizard
-
- [AppFiles]
- vb5cce.exe ;VB IDE files
- vb5idecc.dll
- vb5db.dll
- oles.tlb
- vb5.olb
- scp32.dll ;VBA IDE files
- vba5.dll
- link.exe ;PCode generation files
- mspdb41.dll
- readme.rtf
-
- [AppHelpFiles]
- pss.hlp
- pss.cnt
-
- [OfficeFiles]
- mso97rt.dll,,,32 ;Office files
- mrt7enu.dll,,,32
-
- [FontDirFiles]
- tahoma.ttf,,,16 ;Not versioned so don't copy if exists
-
- ;Currently we also uninstall vbaddin.ini
- [WinDirFiles]
- vbaddin.ini
-
- [TemplateProjects]
- CtlGroup.vbg
-
- [TemplateCtlGroup]
- Form1.frm
- Project1.vbp
- Project2.vbp
- UserCtl1.ctl
- UserCtl1.ctx
-
- [Wizards]
- ctrlwiz.dll
- proppgwz.dll
- tlbinf32.dll
-
- [Samples]
- AXMrquee.htm ;from Marquis sample directory
-
- [SampleAXButton]
- AXButton.ctl
- AXButton.ctx
- AXButton.vbp
-
- [SampleAXLstPik]
- AXLstPik.ctl
- AxLstPik.ctx
- AXLstPik.pag
- AXLstPik.pgx
- AXLstPik.vbp
- Test.frm
- Group1.vbg
- Test.vbp
-
- [SampleAXMarquis]
- AXMrquee.vbg
- AXMrquee.vbp
- BKGNDCOL.BMP
- caps.bmp
- frmTest.frm
- frmTest.frx
- Global.bas
- MarqTest.vbp
- Marquee.ctl
- Marquee.ctx
- OCXICON.BMP
- proppg.pag
-
- [SetupkitSetup1]
- setup1.exe
- setup1.vbp
-
- [SetupkitKitfil32]
- setup.exe
- setupwiz.exe
- st5unst.exe
- vb5stkit.dll
- vbskco32.dll
- diantz.exe
- vb5dep.ini
-
- [SetupkitKitfil32Sys32]
- asycfilt.dll
- ctl3d32.dll
- oleaut32.dll
- olepro32.dll
- riched32.dll
- stdole2.tlb
- msvcrt40.dll
- ;End of File copy/delete sections
-
- ;Create links in the StartMenu/Programs folder
- [InstallProgramGroup]
- setup.ini, progman.groups,, "vbfolder="""%ShortAppName%""""
- setup.ini, vbfolder,, """%ShortAppName%"", """"""%49000%\vb5cce.exe"""""",,,,%49000%"
- setup.ini, vbfolder,, """Application Setup Wizard"",""""""%49000%\SetupKit\Kitfil32\setupwiz.exe"""""",,,,%49000%"
- setup.ini, vbfolder,, """ReadMe"", """"""%49000%\readme.rtf"""""",,,,%49000%"
- winhelp.ini, Files,, "PSS.HLP=%49001%"
-
- [UninstallProgramGroup]
- setup.ini, progman.groups,, "vbfolder="""%ShortAppName%""""
- setup.ini, vbfolder,, """%ShortAppName%"""
- setup.ini, vbfolder,, """Application Setup Wizard"""
- setup.ini, vbfolder,, """ReadMe"""
-
- [SelfRegisterSection]
- %11%\comcat.dll
- %11%\oleaut32.dll
- %11%\msvbvm50.dll
- %11%\comdlg32.ocx
- %11%\comctl32.ocx
- %11%\msstkprp.dll
- %49000%\Wizards\tlbinf32.dll
- %49000%\Wizards\ctrlwiz.dll
- %49000%\Wizards\proppgwz.dll
-
- [SelfUnRegisterSection]
- %49000%\Wizards\tlbinf32.dll
- %49000%\Wizards\ctrlwiz.dll
- %49000%\Wizards\proppgwz.dll
-
- ; add license keys for ole controls
- [RegLicenseKeys]
- HKCR,"Licenses",,2,"Licensing: Copying the keys may be a violation of established copyrights."
- ;CmdDialog
- HKCR,"Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905",,2,"gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj"
- ;ComCtl
- HKCR,"Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905",,2,"aahakhchghkhfhaamghhbhbhkbpgfhahlfle"
-
- [AddRegSection]
- ; <root-key>,<sub-key>,<value-name>,<flag>,<value>
- ; flags - 0 - ANSI,replace, 1 - HEX,Replace, 2 - ANSI,No Replace, 3 - HEX,No Replace
- ; For registry entries we always use the LFN LDID
- ; Register custom install directory
- HKLM,%AppKey%,InstallDir,0,%49001%
- ;Register Office runtime files
- HKLM,"Software\Microsoft\Shared Tools\MSO97RT","Path",2,"%49301%\MSO97RT.DLL"
- HKLM,"Software\Microsoft\Shared Tools\MSO97RT\Clients","%49001%\vb5cce.exe",0
- HKLM,"Software\Microsoft\Shared Tools\MRT7ENU","Path",2,"%49301%\MRT7ENU.DLL"
- HKLM,"Software\Microsoft\Shared Tools\MRT7ENU\Clients","%49001%\vb5cce.exe",0
- ; Register for uninstall
- HKLM,%AppUninstallKey%,"DisplayName",,"%AppName%"
- HKLM,%AppUninstallKey%,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\vb5cce.inf, Uninstall"
-
- [DelRegSection]
- ; <reg-root>,<subkey>,<value-name>
- ;Remove app key
- HKLM,%AppKey%
- ;Remove Uninstall key
- HKLM,%AppUninstallKey%
- ;Remove ourselves from Office runtime file keys
- HKLM,"Software\Microsoft\Shared Tools\MSO97RT\Clients","%49001%\vb5cce.exe",0
- HKLM,"Software\Microsoft\Shared Tools\MRT7ENU\Clients","%49001%\vb5cce.exe",0
-
- ; Query user for a custom app install directory. This value is persisted in the registry
- ; in AddRegSection
- [InstallCustomDestination]
- ; <LDID OEM SFN>,<LDID ANSI LFN>=<Section Name>,<Flag>
- ; flag 5 means don't prompt the user
- 49100,49101=ProgramFilesDir,5
- 49200,49201=CommonFilesDir,5
- 49300,49301=MicrosoftSharedVBADir,5
- ; Custom app directory, flag 1 means prompt user
- 49000,49001=AppCustomDestination,1
-
- [ProgramFilesDir]
- HKLM,"Software\Microsoft\Windows\CurrentVersion",'ProgramFilesDir',,"%24%\Program Files"
-
- [CommonFilesDir]
- HKLM,"Software\Microsoft\Windows\CurrentVersion",'CommonFilesDir',,"%24%\Common Files"
-
- [MicrosoftSharedVBADir]
- ;The reg key is bogus. This is done simply to compose the custom LDID.
- HKLM,"This\Will\Fail",'CommonFilesDir',,"%49201%\%MSSharedVBA%"
-
- [AppCustomDestination]
- HKLM,"%AppKey%",'InstallDir',%DirectoryPrompt%,"%49101%\%DefaultDir%"
-
- ; Get app directory for uninstall from the registry
- [UninstallDestination]
- ; <LDID OEM SFN>,<LDID ANSI LFN>=<Section Name>,<Flag>
- 49000,49001=UninstallDestination49000,5
-
- [UninstallDestination49000]
- 'HKLM',%AppKey%,'InstallDir','',''
-
- ; Without this section you get an error on Win95 that it
- ; can't find the files (even though it just unpacked them!)
- [SourceDisksNames]
- 1 = %AppName%,,1
-
- [Strings]
- AppName = "Visual Basic 5.0 Control Creation Edition"
- ShortAppName = "Visual Basic 5.0 CCE"
- ; Reg keys
- AppKey = "SOFTWARE\Microsoft\VB5CCE"
- AppUninstallKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VB5CCE"
- WindowsKey = "SOFTWARE\Microsoft\Windows\CurrentVersion"
- ; Prompts
- BeginPrompt = "Are you sure you want to remove Visual Basic 5.0 CCE?"
- EndPrompt = "Visual Basic 5.0 CCE successfully removed."
- DirectoryPrompt = "Where would you like to copy the Visual Basic 5.0 CCE files?"
- ; Directories
- DefaultDir = "VB5CCE"
- MSSharedVBA = "Microsoft Shared\VBA"
-
- ; I don't think this section is necessary
- [SourceDisksFiles]
- regsvr32.exe=1
- riched20.dll=1
- asycfilt.dll=1
- comcat.dll=1
- oleaut32.dll=1
- stdole2.tlb=1
- msvcrt40.dll=1
- msvbvm50.dll=1
- vb5cce.exe=1
- vb5ide.dll=1
- vb5db.dll=1
- oles.tlb=1
- vb5.olb=1
- scp32.dll=1
- vba5.dll=1
- mso97rt.dll=1
- mrt7enu.dll=1
- link.exe=1
- mspdb41.dll=1
- tahoma.ttf=1
-